var finde = document.getElementById("inputText");
var btn = document.getElementById("theBtn");

finde.onfocus = ()=>{
	finde.setAttribute("placeholder","");
	finde.style.border = "none"
}
finde.onblur = ()=>{
	finde.setAttribute("placeholder","搜索详情内容");
}

$.ajax({
	type: "get",
	url: "../json/indexDiv.json",
	dataType: "json",
	success: function(data){
		console.log(data)

		doChangeBooks(data[2],$("#books"));
		function doChangeBooks(obj,id){
			for(var i in obj){
				for(var s = 0; s <= 3; s++){
					var thisBooks = "<div><a href='#'><img src='" + obj[i][s].img + "' /></a></div>"; 
					id.append(thisBooks);
				}
			}
		}	
	}
});